{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css"
	rel="stylesheet">
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>所有员工(总数：{$total}人)</h5>
					</div>
					<div class="ibox-content">
						<div class="row m-b-sm m-t-sm">
							<div class="col-md-1">
								<button type="button" id="loading-example-btn"
									class="btn btn-white btn-sm refresh">
									<i class="fa fa-refresh"></i> 刷新
								</button>
							</div>
						</div>
						<table class="footable table table-stripped toggle-arrow-tiny"
							data-page-size="50" data-filter=#filter>
							<thead>
								<tr>
									<th width="70">ID</th>
									<th width="70">用户ID</th>
									<th width="70">姓名</th>
									<th>手机</th>
									<th>公司</th>
									<th>部门</th>
									<th>职务</th>
									<th>项目职务</th>
									<th>电话</th>
									<th>E-mial</th>
									<th>职位</th>
									<th>公司ID</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								{foreach name="res" id="vo" key="key"}
								<tr class="gradeX">
									<td>{$vo.id}</td>
									<td>{$vo.user_id}</td>
									<td>{$vo.name}</td>
									<td class="center">{$vo.tel}</td>
									<td>{$vo.company}</td>
									<td>{$vo.department}</td>
									<td>{$vo.duties}</td>
									<td>{$vo.item_duties}</td>
									<td>{$vo.telephone}</td>
									<td>{$vo.email}</td>
									<td>{$vo.position}</td>
									<td>{$vo.company_id}</td>
									<!-- <td><a
										href="{:url('admin/Hunanconstr/employee_edit',['id'=>$vo.id])}"
										class="btn btn-white btn-sm"> 编辑 </a></td> -->
									<td><a onClick="return confirm('确定删除?');"
										href="{:url('admin/Hunanconstr/employee_del',['id'=>$vo.id])}"
										class="btn btn-white btn-sm"> 删除 </a></td>
								</tr>
								{/foreach}
							</tbody>
							<tfoot hidden="hidden">
								<tr>
									<td colspan="5">
										<ul class="pagination pull-right"></ul>
									</td>
								</tr>
							</tfoot>
						</table>
						<div class="item-page" style="padding-left: 600px;">{$page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	{include file="public/hunanconstr_footer" /}
	<script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>

	<!-- 自定义js -->
	<script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
	<script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
          	//iframe窗
          	$('.edit').click(function(){
          		var index = layer.open({
          			type : 2,
					fixed: true,
					scrollbar: false,
					title : '编辑',
					shadeClose : false,
					maxmin : true, //开启最大化最小化按钮
					area : ['893px', '600px'],
					//offset: '100px',
					content : '{:url("admin/admin/edit")}'
          		});
          		layer.full(index);
          	})
		});
	</script>
</body>
</html>
